

package jetbrains.buildServer.server.rest.model.pages;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.jetbrains.annotations.NotNull;

@XmlType(name = "errorDescriptor")
public class ErrorDescriptor {
  private final String myMessage;
  private final String myLocation;

  public ErrorDescriptor(@NotNull String message, @NotNull String location) {
    myMessage = message;
    myLocation = location;
  }

  @XmlElement
  public String getMessage() {
    return myMessage;
  }

  @XmlElement
  public String getLocation() {
    return myLocation;
  }
}